package com.hdoit.ares.logical.acc.dao;

import java.util.Date;
import java.util.List;

import com.hdoit.ares.logical.acc.model.AccountDetail;
import com.hdoit.ares.logical.viewmodel.acc.AccountDetailSearch;
import com.hdoit.ares.logical.viewmodel.acc.FindAccountDetail;
import com.tennetcn.common.dao.base.ISuperDao;
import com.tennetcn.common.message.PagerModel;

/**
 * @author caochengmeng
 * @email
 * @createtime 2017年11月27日 09:19:00
 * @comment
 */
public interface IAccountDetailDao extends ISuperDao<AccountDetail> {
	// 显示余额详情
	public List<AccountDetail> queryBalanceList(String custId);

	// 查询总收入
	public AccountDetail querySumIncomeMoney(FindAccountDetail findAccountDetail,String id);

	// 查询总支出
	public AccountDetail querySumExpendMoney(FindAccountDetail findAccountDetail,String id);

	// 根据时间显示所有账户余额信息
	public List<AccountDetail> queryList(AccountDetailSearch accountDetailSearch, PagerModel pagerModel);
	
	//按条件查询
	public List<AccountDetail> queryAccountDetail(FindAccountDetail findAccountDetail,String custId);
	
	//按余额详情Id查询
	public AccountDetail queryAccount(String id);
	
	//查询日提现笔数，日提现总金额
	public AccountDetail queryAccountDetailByTime(String customerId,Date startDate,Date endDate);
	
	//按条件查询数量
	public int queryCount(AccountDetailSearch accountDetailSearch);
	

	//根据交易流水号去改变提现记录状态
	public AccountDetail queryModelByServiceId(String serviceId);
	
	//查询当前页面的账户余额详情列表
	public List<AccountDetail> queryAccountList(FindAccountDetail findAccountDetail,String custId,Integer start,Integer length);

	/*// 查询当前页面的总收入
	public AccountDetail querySumIncome(FindAccountDetail findAccountDetail,String id,Integer start,Integer length);

	// 查询当前页面的总支出
	public AccountDetail querySumExpend(FindAccountDetail findAccountDetail,String id,Integer start,Integer length);*/
}